
"""django 离线脚本，离线添加数据"""


from web import models
#往数据库添加数据
def run():
    # models.UserInfo.objects.create(username='zhengyk2',email='zhengyk2@mail.com',mobile_phone='18649801865',password='12345678')
    exists = models.PricePolicy.objects.filter(category=1,title="个人免费版").exists()
    if not exists:
        models.PricePolicy.objects.create(
            category=1,
            title='个人免费版',
            price=0,
            project_num=3,
            project_member=2,
            project_space=20,
            per_file_size=5,
        )

if __name__ == '__main__':
    run()
